package com.ruoyi.back.domain

import com.baomidou.mybatisplus.annotation.*
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import org.springframework.format.annotation.DateTimeFormat
import java.util.*
import javax.persistence.*

@ApiModel("推广中心")
@TableName("fly_spread_center")
@Entity
@Table(name = "fly_spread_center")
data class SpreadCenter(

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("id 更新的时候需要传递")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    var id: Long? = null,

    /**
     * 创建人
     */
    @ApiModelProperty(hidden = true)
    var createBy: Long? = 0L,

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(hidden = true)
    var createTime: Date? = null,

    /**
     * 更新人
     */
    @ApiModelProperty(hidden = true)
    var updateBy: Long? = 0L,

    /**
     * 更新时间
     */
    @ApiModelProperty(hidden = true)
    @TableField(fill = FieldFill.UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    var updateTime: Date? = null,

    /**
     * 逻辑删除
     */
    @ApiModelProperty(hidden = true)
    @TableLogic
    var deleted: Int? = 0,

    @ApiModelProperty("显示位置: 1. 最上方 2. 中间 3.下方")
    var location: Int? = null,

    @ApiModelProperty("轮播图")
    var bannerPic: String? = null,

    @ApiModelProperty("轮播图停留秒数")
    var bannerStaySeconds: Int? = null,

    @ApiModelProperty("软件名称")
    var appName: String? = null,

    @ApiModelProperty("软件图标")
    var appIcon: String? = null,

    @ApiModelProperty("软件介绍")
    var appIntroduction: String? = null,

    @ApiModelProperty("apk链接")
    var apkUrl: String? = null,

    @ApiModelProperty("三方链接")
    var threeUrl: String? = null,

    @ApiModelProperty("软件主图")
    var appMainPic: String? = null,

    @ApiModelProperty("app详情图")
    var appDetailPic: String? = null,

    @ApiModelProperty("是否显示")
    var isShow: Boolean? = true,

    @ApiModelProperty("排序")
    var orderNum: Long? = 0,

    )
